/* eslint-disable */
import type { BaseResponse_int_ } from "../models/BaseResponse_int_";
import type { ProblemThumbAddRequest } from "../models/ProblemThumbAddRequest";
import type { CancelablePromise } from "../core/CancelablePromise";
import { OpenAPI } from "../core/OpenAPI";
import { request as __request } from "../core/request";

export class ProblemThumbControllerService {
  /**
   * doThumb
   * @param problemThumbAddRequest problemThumbAddRequest
   * @returns BaseResponse_int_ OK
   * @returns any Created
   * @throws ApiError
   */
  public static doThumbUsingPost(
    problemThumbAddRequest: ProblemThumbAddRequest
  ): CancelablePromise<BaseResponse_int_ | any> {
    return __request(OpenAPI, {
      method: "POST",
      url: "/api/problem_thumb/",
      body: problemThumbAddRequest,
      errors: {
        401: `Unauthorized`,
        403: `Forbidden`,
        404: `Not Found`,
      },
    });
  }
}
